from django.test import TestCase

# Create your tests here.

from libs.captcha.captcha import captcha

# Create your views here.
# 生产验证码
text,image = captcha.generate_captcha()
print(text)
with open('yzm.jpeg','wb') as f:
    f.write(image)

